import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'
Vue.config.productionTip = false
import Index from '@/components/Index'
import Class from '@/components/Class'
import Order from '@/components/Order'
import ty1 from '@/components/Second/ty1'
import ty2 from '@/components/Second/ty2'
import ty3 from '@/components/Second/ty3'
import My from '@/components/My'
Vue.use(VueRouter)
const routes = [
    {
        path: "/",
        component: Index
    },
    {
        path: "/index",
        component: Index
    },
    {
        path: "/class",
        component: Class
    },
    {
        path: "/order",
        component: Order,
    },
    {
        path: "/my",
        component: My,
        children: [
            {
                path: "ty1",
                component: ty1
            },
            {
                path: "ty2",
                component: ty2
            },
            {
                path: "ty3",
                component: ty3
            }
        ]
    },

]
const router = new VueRouter({
    routes
})
new Vue({
    router,
    render: h => h(App),
}).$mount('#app')
